package com.teradata.dashboard.ui.fragment;

import android.app.ActionBar;
import android.app.Fragment;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.teradata.dashboard.R;

public class SettingFragment extends Fragment {
	private  ImageView userImg;
	private  ImageView userImgStrench;
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View messageLayout = inflater.inflate(R.layout.preferrnce, container,
				false);
		
		return messageLayout;
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		getActivity().getActionBar().setDisplayHomeAsUpEnabled(true);
		getActivity().getActionBar().setDisplayShowHomeEnabled(false);
		getActivity().getActionBar().setHomeButtonEnabled(true);
		getActivity().getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
		getActivity().getActionBar().setTitle(R.string.setting);
		
		
		
		
		
		
	}
	@Override  
    public void onActivityCreated(Bundle savedInstanceState) {  
            super.onActivityCreated(savedInstanceState); 
            
         Typeface iconfont = Typeface.createFromAsset(getActivity().getAssets(), "fonts/fontawesome-webfont.ttf");
   		 ((TextView)getView().findViewById(R.id.setting_user_info_i)).setTypeface(iconfont);
   		 ((TextView)getView().findViewById(R.id.setting_auto_load_i)).setTypeface(iconfont);
   		 ((TextView)getView().findViewById(R.id.setting_font_size_i)).setTypeface(iconfont);
   		 ((TextView)getView().findViewById(R.id.setting_clear_cache_i)).setTypeface(iconfont);
   		 ((TextView)getView().findViewById(R.id.setting_about_i)).setTypeface(iconfont);
   		 ((TextView)getView().findViewById(R.id.setting_check_upgrade_i)).setTypeface(iconfont);
   		 ((TextView)getView().findViewById(R.id.setting_suggest_i)).setTypeface(iconfont);
   		 ((TextView)getView().findViewById(R.id.setting_user_info_i)).setTypeface(iconfont);
   		 
   		 
   		 ((TextView)getView().findViewById(R.id.setting_user_info_a)).setTypeface(iconfont);
		 ((TextView)getView().findViewById(R.id.setting_about_a)).setTypeface(iconfont);
		 ((TextView)getView().findViewById(R.id.setting_check_upgrade_a)).setTypeface(iconfont);
   		
	}
}
